/**
 * 页面入口配置文件
 * @author kdxmxu
 */

// Vue组件
import Vue from "vue";

// 父级页面
import App from "./App.vue";

// 路由
import router from "@/router";

// vuex
import store from "@/vuex/store";

// ui组件库
import ant from "ant-design-vue";
import "ant-design-vue/dist/antd.css";

// http配置
import HttpConfig from "@/config/HttpConfig";
import * as request from "@/utils/Request";

import "./permission"; // permission control
import "@/assets/css/global/index.less";
import "@/router/router-mixin.js";
import "./network"

// 引入所有组件
import "@/components/load"

// 引入公共js函数
import commonjs from "@/common/js"

// 引入公共api
import commonApi from "@/common/api"

// 复制插件
import VueClipboard from "vue-clipboard2";
Vue.use(VueClipboard);

// 配置vue
Vue.prototype.http = HttpConfig;
Vue.prototype.$request = request;
Vue.prototype.$filePrefix = process.env.VUE_APP_FILE_URL;
Vue.prototype.$apiPrefix = process.env.VUE_APP_BASE_API_URL;
Vue.prototype.$commonjs = commonjs
Vue.prototype.$commonApi = commonApi
Vue.use(ant);
Vue.config.productionTip = false;

// 实例Vue并挂载到id为app的元素中
new Vue({
    store,
    router,
    render: (h) => h(App),
}).$mount("#app");
